import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';
import Cutpictures from '@feidao/widgets/fd-w000024';

export default async function a005(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	const s = fd.data.node.querySelector<Cutpictures>('[data-feidao-id="fd-w000024-001"]');
	const img = await s.get_canvas_img();
	fd.data.node.querySelector<HTMLImageElement>('[data-feidao-id="fd-w000024-004"]').src = img[0];
	fd.data.node.querySelector<HTMLTextAreaElement>('[data-feidao-id="fd-w000024-005"]').innerHTML = `const s = fd.data.node.querySelector<Select>('[data-feidao-id="fd-w000024-001"]');
s.get_canvas_img();`;
}
